package ru.spb.osll.myfit.server.templateloader;

import java.net.URL;
import java.net.URLClassLoader;

/**
 * @author kdv
 * 
 */
public class JarTableTemplateLoader extends BaseTableTemplateLoader {
	private URLClassLoader m_classLoader;
	private URL[] m_url;

	public JarTableTemplateLoader(String fixturePath, URLClassLoader classLoader) {
	  m_classLoader = classLoader;
	  m_url = getJars(fixturePath).toArray(new URL[]{});
	}
	
	protected URLClassLoader getClassLoader() {
		return m_classLoader;
	}
	
  protected URL[] getFixturesUrls() {
	  return m_url;
	}
}
